package com.oscarmovie;

import java.io.IOException;
import java.util.Properties;

public class Constants {
	public static final String LIST = "list";
	public static final String DETAIL = "detail";
	public static final String ADD = "add";
	public static final String EDIT = "edit";
	public static final String SUCCESS = "success";
	public static final String SELECT = "select";
	public static final String IMAGES = "images";
	public static final String VIDEOS = "videos";
	public static final String RANKING = "ranking";
	public static final String PEOPLE = "people";
	public static final String SEARCH = "search";
	public static final String ABOUT = "about";
	
	public static final String CATEOGRY = "category";
	public static final String COUNTRY = "country";
	public static final String AWARD = "award";
	public static final String CALENDAR = "calendar";
	public static final String ROLE = "role";
	
	public static final String DELETE = "delete";
	public static final String PERSON = "person";
	public static final String MOVIE = "movie";
	public static final String CLOSE = "close";
	public static final String REFRESH = "refresh";
	public static final String NEWS = "news";
	public static final String DB_TYPE_ORACLE="oracle";
	public static final String DB_TYPE_MYSQL="mysql";
	
	public static final Properties properties = new Properties();
	static {
		try {
			properties.load(new Constants().getClass().getResourceAsStream("/oscarchinese.properties"));
			
		} catch (IOException e) {
			e.printStackTrace();
		}
		
	}
	public static final String DB_TYPE = properties.getProperty("db.type");
	public static final String LOGIN = "login";
	public static final String LOGOUT = "logout";
	public static final String UNAUTH = "unauth";
	
}
